<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function one() {
        return 1;
      }

      new Promise((res) => {
        res()
      }).then(res => {
          console.log('promise')
      })

      function two() {
        return one() + 1;
      }

      function three() {
        return two() + 1;
      }

      setTimeout(() => {
          console.log('setTimeout')
      },0)
      console.log(three());
    </script>
  </body>
</html>
